<?php
include_once("header.php");
$query=mysql_query("SELECT * FROM domains");
include_once("welcome_msg.php");
$nquery=mysql_num_rows($query);
// check if exist domains
if($nquery > 0) { echo "<h4>&raquo; Select domain action</h4>";}
else { echo "does not exist registered domain<br>Lets go! <a href='domain_new.php'>Create a new domain now!</a>";}

while($domain = mysql_fetch_array($query))
{
echo "<center>
	<div style='width: 400px;'>
		<span style='font-weight: bold'>$domain[0]</span> &nbsp;&nbsp;
		<a href='view_domain.php?id=$domain[0]' title='Show users and informations'><img src='images/users.png'></a>  
		<a href='#' title='Delete domain'><img src='images/del.png'></a>  
	</div>
	</center>";
}
?>
<br /><br />
<br /><br />
<?php include_once("footer.php");?>
